﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace WeatherPrediction
{
    [DataContract]
    class ParseForecast
    {
        [DataMember(Name = "forecast")]
        public ParseTxtForecast forecastDay { get; set; }
    }

    [DataContract]
    class ParseTxtForecast
    {
        [DataMember(Name = "txt_forecast")]
        public ParseForecastDay forecastDay { get; set; }
    }

    [DataContract]
    class ParseForecastDay
    {
        [DataMember(Name = "forecastday")]
        public forecastOfOneday[] listForecastDay { get; set; }
    }

    [DataContract]
    public class forecastOfOneday
    {
        [DataMember(Name = "period")]
        public int period { get; set; }

        [DataMember(Name = "icon")]
        public string icon { get; set; }

        [DataMember(Name = "icon_url")]
        public string icon_url { get; set; }

        [DataMember(Name = "title")]
        public string title { get; set; }

        [DataMember(Name = "fcttext")]
        public string fcttext { get; set; }

        [DataMember(Name = "fcttext_metric")]
        public string fcttext_metric { get; set; }

        [DataMember(Name = "pop")]
        public string pop { get; set; }

    }

}
